@extends('common.public')
@section('title', $infos->name."-深圳市峰华科技有限公司")
@section('keyword', $infos->keyword)
@section('content')
   
<div class="page-banner" >
        <div class="img-banner md:py-5 flex md:items-center" style="background-image:url('/uploads/{{$banner}}');background-position: 90% center;">
            <div class="banner-infos flex flex-wrap items-center w-full md:w-1/2 py-3 px-4">
                <div class="banner-inner py-3 px-4">
                    <div class="page-title w-full  text-4xl mb-5 text-white">联系我们</div>
                <!-- <div class="page-desc w-full text-white leading-6">ACS开发并提供采用专有智能卡操作系统（ACOS）的智能卡。而且，ACOS卡能够通过多层次的安全访问等级满足这些应用的安全性要求。</div> -->
                </div>
            </div>
        </div>
    </div>

    <div class="page-content">
    <div class="w-full href-hash flex text-sm py-3"> 当前位置:
            <a href="/" title="首页">首页</a><span class="iconfont icon-xiangyou"></span><span>联系我们</span></div>
        <div class="flex flex-wrap">
            <div class="f-tables w-full md:w-1/2 relative">
                <div class=" m-1 md:px-5">
                    <div class="title text-center text-lg font-semibold py-4">在线留言</div>
                    <input type="text" hidden id="token" name="_token" value="{{csrf_token()}}">
                    <div class="one-quere-input">
                        <span class=" " id="name-error">* 姓名 必填</span>
                        <div class="my-2 relative pb-2">
                            <input type="text" name="name" id="name" placeholder="姓名" class="w-full border border-gray-400 py-2 px-2 rounded focus:outline-none font-light">
                            
                        </div>
                    </div>
                    <div class="one-quere-input">
                        <span class="  " id="name-error">* 邮箱 必填</span>
                        <div class="mb-2 relative pb-2">
                            <input type="text" name="email" id="email" placeholder="邮箱" class="w-full border border-gray-400 py-2 px-2 rounded focus:outline-none font-light">
                            
                            <span class="absolute -bottom-2 text-red-600 hidden left-20 text-xs " id="email-invalid-error">* 请输入正确的邮箱地址</span>
                        </div>
                    </div>
                    <div class="one-quere-input">
                        <span class="   " id="name-error">* 电话 必填</span>
                        <div class="mb-2 relative pb-2">
                            <input type="text" name="phone" id="phone" placeholder="电话" class="w-full border border-gray-400 py-2 px-2 rounded focus:outline-none font-light">
                            <!-- <span class="absolute -bottom-2 text-red-600  left-0 text-xs " id="name-error">* 电话 必填</span> -->
                        </div>
                    </div>
                    <div class="one-quere-input">
                        <div class="my-2 relative">
                            <span class="" >* 留言 必填</span>
                            <div class="">
                                <textarea name="inquiry" id="inquiry" placeholder="留言"  class="w-full border border-gray-400 py-2 px-2 rounded focus:outline-none font-light" cols="30" rows="5"></textarea>
                            </div>
                            
                        </div>
                    </div>
                    <div class="one-quere-input w-full">
                        <span class="" id="code-error">* 验证码必填</span>
                        <div class="flex items-center relative pb-2">
                            <input type="text" name="code" id="code" placeholder="验证码" class="w-1/2 border border-gray-400 py-2 px-2 rounded focus:outline-none font-light ">
                            <img src="{{captcha_src()}}"  id="codess" onclick="getcode()" style="height: 40px; margin-left: 10px;cursor:pointer;" title="点击切换图片" alt="">
                            
                        </div>
                    </div>
                    <div class="one-quere-input w-full text-center mt-8">
                        <a onclick="quere()" class="quere-btn py-2 px-5 border border-black rounded-lg cursor-pointer  hover:text-white">提交</a>
                    </div>
                </div>
                <div class="success hidden px-4 py-2 rounded absolute shdow-lg text-black border bg-gray-300">
                    <div class="success-title text-center"></div>
                    <div class="success-desc py-3"></div>
                </div>
            </div>
            <div class="f-info w-full md:w-1/2">
                <div class=" m-1 md:px-5">
                    <div class="title text-center text-lg font-semibold py-4">联系我们</div>
                    <div class="contect-us">
                    {!! $infos->htmls !!}
                    </div>
                </div>
            </div>
        </div>
        <div class="map-s py-16">
            <h2 class="py-4 text-2xl font-semibold">地图标记</h2>
            <div class="map w-full h-80" >
                <div id="allmap" class=" h-80"></div>
            </div>
        </div>

    </div>

<script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=HRErq2wbimSRUmQgHhOuDAQIvfVs5rU8"></script>
@endsection